package ru.jkff.jalgebra.utils;

import java.util.*;

/**
 * User: jkff
 * Date: Aug 22, 2009
 * Time: 12:43:28 PM
 */
public abstract class CollectionFactory {
    private CollectionFactory() {}

    public static <K,V> Map<K,V> newUnorderedMap() { return new HashMap<K,V>();       }
    public static <K,V> Map<K,V> newLinkedMap()    { return new LinkedHashMap<K,V>(); }
    public static <T>   List<T>  newList()         { return new ArrayList<T>();       }
    public static <T>   Set<T>   newUnorderedSet() { return new HashSet<T>();         }
    public static <T>   Set<T>   newLinkedSet()    { return new LinkedHashSet<T>();   }
}
